package com.fowo.api.model.cost.supplement.form.subtable;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 成本补录单子表 导入导出辅助模型 */
@Getter
@Setter
public class CostSupplementFormSubtableExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属成本补录单")
  private String parentCostSupplementFormOrderNumber;

  @ExcelIgnore
  @ExcelProperty(value = "所属成本补录单")
  private Long parentCostSupplementForm;

  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> img;

  @NotNull(message = "品名不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*品名")
  private String tradeNameName;

  @ExcelIgnore
  @ExcelProperty(value = "*品名")
  private Long tradeName;

  @Size(max = 100, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @NotNull(message = "店铺不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*店铺")
  private String shopShopName;

  @ExcelIgnore
  @ExcelProperty(value = "*店铺")
  private Long shop;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "FNSKU")
  private String fnsku;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "入库单号")
  private String warehouseEntryNumberCgRealname;

  @ExcelIgnore
  @ExcelProperty(value = "入库单号")
  private Long warehouseEntryNumber;

  @ExcelProperty(value = "入库量")
  private Integer unitStock;

  @ExcelProperty(value = "采购单价")
  private java.math.BigDecimal apuc;

  @ExcelProperty(value = "单位费用")
  private java.math.BigDecimal unitCost;

  @ExcelProperty(value = "单位入库成本")
  private java.math.BigDecimal unitWarehousingCost;

  @ExcelProperty(value = "货值")
  private java.math.BigDecimal value;

  @ExcelProperty(value = "费用")
  private java.math.BigDecimal charge;

  @ExcelProperty(value = "入库成本")
  private java.math.BigDecimal arcd;

  @ExcelProperty(value = "货值调整金额")
  private java.math.BigDecimal valueAdjustmentAmount;

  @ExcelProperty(value = "费用调整金额")
  private java.math.BigDecimal expenseAdjustmentAmount;

  @ExcelProperty(value = "入库成本调整金额")
  private java.math.BigDecimal adjustmentCost;
}
